/*
 * Copyright (c) 2013, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.pyip.simpleioc.beans.definition.factory;

import java.util.Map;

import com.pyip.simpleioc.beans.definition.BeanDefinition;
import com.pyip.simpleioc.beans.definition.BeanDefinitionException;

/**
 * @author yepeng
 * @date 2015年11月6日
 */
public interface BeansFactory {
    /**
     * @param beanDefinitionMap
     * @throws BeanDefinitionException 重复实例化, 或者反射操作异常时抛出
     */
    void doDefinition(Map<String, BeanDefinition> beanDefinitionMap) throws BeanDefinitionException;

    /**
     * @param beanDefinition
     * @throws BeanDefinitionException 重复实例化, 或者反射操作异常时抛出
     */
    void doDefinition(BeanDefinition beanDefinition) throws BeanDefinitionException;
}
